package org.hxzon.workeasy.model;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.validation.constraints.Size;

import org.hxzon.workeasy.model.base.Upload;

@Entity
//@Indexed
public class EasyFile extends Upload {

    private static final long serialVersionUID = 6705569910023553421L;

    @OneToMany(mappedBy = "easyFile", fetch = FetchType.LAZY)
    private List<FileTag> fileTags;

    @Column(columnDefinition = DefineVarchar2048)
    @Size(max = DefineSize2048)
//	@Field(name="search")
    private String tagString;

    @Column(columnDefinition = DefineVarchar2048)
    @Size(max = DefineSize2048)
//  @DataType(TapestryEx.DataType_html)
//  @Field(name="search")
    private String remark;

    public List<FileTag> getFileTags() {
        return fileTags;
    }

    public void setFileTags(List<FileTag> fileTags) {
        this.fileTags = fileTags;
    }

    public String getTagString() {
        return tagString;
    }

    public void setTagString(String tagString) {
        this.tagString = tagString;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
